package com.sg.dto.biz.framework.res;


import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


@Data
public class PlfAuthDto extends BaseDto implements Serializable {

    /**
     * 授权记录ID:
     */
    @ApiModelProperty("授权记录ID")
    private String platformAuthorizeId;

    /**
     * 授权内容ID:
     */
    @ApiModelProperty("授权内容ID")
    private String authorizedContentId;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 权限图标:
     */
    @ApiModelProperty("权限图标")
    private String privacyLogo;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 权限标识:
     */
    @ApiModelProperty("权限标识")
    private String privacyCode;

    /**
     * 权限名称:
     */
    @ApiModelProperty("权限名称")
    private String privacyName;

    /**
     * 分配策略:
     */
    @ApiModelProperty("分配策略")
    private String strategyType;
    /**
     * 是否手动创建:
     */
    @ApiModelProperty("是否手动创建")
    private String automaticCreation;
    /**
     * 是否平台数据:
     */
    @ApiModelProperty("是否平台数据")
    private String platformData;
    /**
     * 角色类型:
     */
    @ApiModelProperty("角色类型")
    private String roleType;
    /**
     * 是否身份角色:
     */
    @ApiModelProperty("是否身份角色")
    private String isIdentity;
    /**
     * 角色标识:
     */
    @ApiModelProperty("角色标识")
    private String roleCode;
    /**
     * 角色名称:
     */
    @ApiModelProperty("角色名称")
    private String roleName;
    /**
     * 角色图标:
     */
    @ApiModelProperty("角色图标")
    private String roleLogo;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        PlfAuthDto that = (PlfAuthDto) o;
        return platformAuthorizeId == that.platformAuthorizeId && authorizedContentId == that.authorizedContentId && subjectLifeCycle == that.subjectLifeCycle && privacyLogo == that.privacyLogo && operationInductionId == that.operationInductionId && operateTime == that.operateTime && privacyCode == that.privacyCode && privacyName == that.privacyName && strategyType == that.strategyType && automaticCreation == that.automaticCreation && platformData == that.platformData && roleType == that.roleType && isIdentity == that.isIdentity && roleCode == that.roleCode && roleName == that.roleName && roleLogo == that.roleLogo;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), platformAuthorizeId, authorizedContentId, subjectLifeCycle, privacyLogo, operationInductionId, operateTime, privacyCode, privacyName, strategyType, automaticCreation, platformData, roleType, isIdentity, roleCode, roleName, roleLogo);
    }
}
